﻿<%@ Page Language="C#" MasterPageFile="~/adm-Master.Master" AutoEventWireup="true" CodeBehind="Manufacturer.aspx.cs" Inherits="BookStore.admin.Manufacturer" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="PageName">Manufacturer Manager</div>
    
<asp:Panel ID="pnView" runat="server">

<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddT" runat="server">Add new</asp:LinkButton>
        </li> 
        <li>
            <asp:LinkButton CssClass="vdelete" ID="lbtDeleteT" runat="server">Delete</asp:LinkButton>
        </li> 
        <li> 
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshT" runat="server">Refesh</asp:LinkButton></li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
        </li>
    </ul>
</div>
<asp:Datagrid ID="dgAdm" runat="server" width="100%" CssClass="TableView" 
        AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" 
        BorderStyle="None" BorderWidth="1px" CellPadding="3"> 
    <FooterStyle BackColor="White" ForeColor="#000066" />
    <HeaderStyle CssClass="trHeader" BackColor="#006699" Font-Bold="True" ForeColor="White"></HeaderStyle> 
    <ItemStyle CssClass="trOdd" ForeColor="#000066"></ItemStyle> 
    <AlternatingItemStyle CssClass="trEven"></AlternatingItemStyle> 
    <Columns>
        <asp:TemplateColumn ItemStyle-CssClass="tdCenter"> 
            <HeaderTemplate> 
                <asp:CheckBox id="chkSelectAll" runat="server" AutoPostBack="True">
                </asp:CheckBox> 
            </HeaderTemplate> 
            <ItemTemplate> 
                <asp:CheckBox id="chkselect" runat="server">
                </asp:CheckBox> 
                <asp:TextBox ID="txtUsername" runat="server" Text='<%# Eval("tenDN") %>' Visible="false"></asp:TextBox>
            </ItemTemplate> 
            <ItemStyle CssClass="tdCenter"></ItemStyle> 
        </asp:TemplateColumn>
        <asp:BoundColumn DataField="tenDN" HeaderText="Username" ItemStyle-CssClass="Text" Visible="true" >
            <ItemStyle CssClass="Text" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="matkhau" HeaderText="Pasword" ItemStyle-CssClass="Text" Visible="true" >
            <ItemStyle CssClass="Text" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="hoten" HeaderText="Fullname" ItemStyle-CssClass="Text" Visible="true" >
            <ItemStyle CssClass="Text" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="gioitinh" HeaderText="Gender" ItemStyle-CssClass="Text" Visible="true" >
            <ItemStyle CssClass="Text" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="ngaysinh" HeaderText="Birthday" ItemStyle-CssClass="Text" Visible="true" >
            <ItemStyle CssClass="Text" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="diachi" HeaderText="Address" ItemStyle-CssClass="Text" Visible="true" >
            <ItemStyle CssClass="Text" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="email" HeaderText="Email" ItemStyle-CssClass="Text" Visible="true" >
            <ItemStyle CssClass="Text" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="ngayDK" HeaderText="Date register" ItemStyle-CssClass="Text" Visible="true" >
            <ItemStyle CssClass="Text" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="quyen" HeaderText="Quyen" ItemStyle-CssClass="Text" Visible="true" >
            <ItemStyle CssClass="Text" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="active" HeaderText="Active" ItemStyle-CssClass="Text" Visible="true" >
            <ItemStyle CssClass="Text" />
        </asp:BoundColumn>
        <asp:TemplateColumn ItemStyle-CssClass="Function"> 
            <HeaderTemplate>Function</HeaderTemplate> 
            <ItemTemplate>
                <asp:ImageButton ID="cmdEdit" runat="server" AlternateText="Edit" CommandName="edit" CssClass="vedit" ToolTip="Edit" ImageUrl="/App_Themes/Admins/images/edit.png" CommandArgument='<%#Eval("tenDN")%>' />
                <asp:ImageButton ID="cmdDelete" runat="server" AlternateText="Delete" CommandName="Delete" CssClass="vdelete" ToolTip="Delete" ImageUrl="/App_Themes/Admins/images/delete.png" CommandArgument='<%#Eval("tenDN")%>' OnClientClick="javascript:return confirm('Are you sure delete?');" />
            </ItemTemplate> 
            <ItemStyle CssClass="Function" />
        </asp:TemplateColumn>
    </Columns>
    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" Mode="NumericPages" />
    <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
</asp:Datagrid>
<div class="Control">
    <ul>
        <li>
            <asp:LinkButton CssClass="vadd" ID="lbtAddB" runat="server">Add new</asp:LinkButton>
        </li> 
        <li>
            <asp:LinkButton CssClass="vdelete" ID="lbtDeleteB" runat="server"  
                OnClientClick="javascript:return confirm('Bạn có muốn xóa?');" >Delete</asp:LinkButton>
        </li> 
        <li>
            <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshB" runat="server">Refesh</asp:LinkButton></li> 
        <li> 
            <a class="vback" href="javascript:void(0);" onclick="window.history.go(-1);">Back</a> 
        </li>
    </ul>
</div>
</asp:Panel>
<asp:Panel ID="pnUpdate" runat="server" Visible="False">
<table class="TableUpdate" border="1">
    <tr> 
        <td class="Control" colspan="2">
            <ul>
                <li>
                    <asp:LinkButton CssClass="uupdate" ID="lbtUpdateT" runat="server">Save</asp:LinkButton>
                </li> 
                <li> 
                    <asp:LinkButton CssClass="uback" ID="lbtBackT" runat="server" 
                        CausesValidation="False">Back</asp:LinkButton>
                </li> 
            </ul>
        </td> 
    </tr>
    <tr> 
    <th> 
       <asp:Label ID="lblUsername" runat="server" Text="Username :"></asp:Label>
    </th>
    <td>
       <asp:TextBox ID="txtUsername" runat="server" CssClass="Text"></asp:TextBox>
    </td>
     </tr>
    <tr> 
       <th> 
            <asp:Label ID="lblPassword" runat="server" Text="Password :"></asp:Label>
       </th>
       <td>
            <asp:TextBox ID="txtPassword" runat="server" CssClass="Text" TextMode="Password"></asp:TextBox>
       </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblFullname" runat="server" Text="Fullname :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtFullname" runat="server" CssClass="Text"></asp:TextBox>
        </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblGender" runat="server" Text="Gender :"></asp:Label>
        </th>
        <td>
            <asp:RadioButtonList ID="rdbGender" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Selected="True" Value="1">Male</asp:ListItem>
                <asp:ListItem Value="0">Female</asp:ListItem>
            </asp:RadioButtonList>
        </td>
      </tr>
      <tr> 
         <th> 
             <asp:Label ID="lblBirthday" runat="server" Text="Birthday :"></asp:Label>
         </th>
         <td>
             <asp:TextBox ID="txtBirthday" runat="server" CssClass="Text"></asp:TextBox>
             <%--<asp:CalendarExtender ID="CalendarExtender1" TargetControlID="txtBirthday" runat="server"></asp:CalendarExtender>--%>
         </td>
      </tr>
      <tr> 
         <th> 
             <asp:Label ID="lblAddress" runat="server" Text="Address :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtAdd" runat="server" CssClass="Text"></asp:TextBox>
        </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblEmail" runat="server" Text="Email :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtEmail" runat="server" CssClass="Text"></asp:TextBox>
        </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblDateregister" runat="server" Text="Date Register :"></asp:Label>
        </th>
        <td>
            <asp:TextBox ID="txtDateregister" runat="server" CssClass="Text"></asp:TextBox>
            <%--<asp:CalendarExtender ID="CalendarExtender2" TargetControlID="txtDateregister" runat="server"></asp:CalendarExtender>--%>
        </td>
      </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblQuyen" runat="server" Text="Quyen :"></asp:Label>
        </th>
        <td>
            <asp:DropDownList ID="ddlQuyen" runat="server" Height="16px" Width="83px">
                <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
            </asp:DropDownList>
        </td>
     </tr>
     <tr> 
        <th> 
            <asp:Label ID="lblActive" runat="server" Text="Active :"></asp:Label>
        </th>
        <td>
            <asp:RadioButtonList ID="rdbActive" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Value="0">No-active</asp:ListItem>
                <asp:ListItem Selected="True" Value="1">Active</asp:ListItem>
            </asp:RadioButtonList>
        </td>
     </tr>
     <tr> 
         <td class="Control" colspan="2">
             <ul>
                 <li>
                 <asp:LinkButton CssClass="uupdate" ID="LinkButton1" runat="server">Save</asp:LinkButton></li> <li> 
                 <asp:LinkButton CssClass="uback" ID="LinkButton2" runat="server" CausesValidation="False">Back</asp:LinkButton>
                 </li> 
             </ul>
         </td> 
     </tr>
</table>
</asp:Panel>
</asp:Content>
